#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int main()
{
	int a = 0;
	int b = 0;
	int i = 0;
	scanf("%d", &a);
	scanf("%d", &i);
	for (b = 0;b < a;b++)
	{
		printf("%c", '*');
	}
	printf("\n");
	for (b = 0;b < i;b++)
	{
		printf("%c", '*');
	}
	return 0;
}